package com.itheima.stock.config;

import com.itheima.stock.cache.Cache;
import com.itheima.stock.cache.Impl.RedisCache;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.core.StringRedisTemplate;

/**
 * @文件名: PasswordEncoderConfiguration
 * @作者: DX
 * @创建日期: 2025/11/5
 * @描述:
 */
@Configuration
public class RedisConfiguration {

    @Bean
    public Cache Cache(StringRedisTemplate redisTemplate) {
        return new RedisCache(redisTemplate);
    }

}
